<div class="deliver">
    <div class="deliver_top">
        <h2>我的订单</h2>
    </div>
    <div class="deliver_main" ng-repeat="delivery in deliverys" repeat-finish="finish()">
        <div class="deliver_main_title" ng-click="pushGoodAndStatus(delivery)">
            <div>
                <img src="images/cmtshopicon.png">
                订单号：{{delivery.dlvid}}
                <img src="images/cmtshopicon.png">
            </div>
        </div>
        <div class="submenu">
            <div class="deliver_main_address" ng-show="userid==3">
                <span class="semi-circle1"></span>
                <span class="semi-circle2"></span>
                <div class="deliver_address">
                    <div class="receiver_message">
                        <span class="receiver_name">{{delivery.receiverName}}</span>
                        <span>{{delivery.receiverPhone}}</span>
                        <span class="phone"></span>
                    </div>
                    <ul>
                        <li class="end_address">
                            <i>配送费</i>
                            <span><i>：</i>￥{{delivery.receiverPay}}</span>
                        </li>
                        <li class="start_address">
                            <i>起点</i>
                            <span><i>：</i>{{delivery.senderAddress}}</span>
                        </li>
                        <li class="end_address">
                            <i>终点</i>
                            <span><i>：</i>{{delivery.receiverAddress}}</span>
                        </li>
                        <li class="end_address">
                            <i>支付方式</i>
                            <span><i>：</i>在线支付</span>
                        </li>
                        <li class="end_address">
                            <i>备注</i>
                            <span><i>：</i>{{delivery.receiverRemark}}</span>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="deliver_main_order">
                <span class="semi-circle1"></span>
                <span class="semi-circle2"></span>
                <span class="semi-circle3"></span>
                <span class="semi-circle4"></span>
                <div class="deliver_main_menu_remark">
                    <div class="deliver_main_menu_new">
                        <span>产品</span>
                    </div>
                    <div class="deliver_main_menu_num">
                        <span class="order_goods_num">数量
                        </span>
                        <span class="order_goods_pri">总价
                        </span>
                    </div>
                </div>
                <div class="deliver_main_menu">
                    <div ng-repeat="delivery_good in delivery.deliveryGoods">
                         <div class="deliver_main_menu_new">
                             <span>{{delivery_good.goodsName}}</span>
                         </div>
                         <div class="deliver_main_menu_num">
                             <span class="order_goods_num">×{{delivery_good.goodsQuantity}}
                             </span>
                             <span class="order_goods_pri">￥{{delivery_good.goodsQuantity*delivery_good.goodsPrice}}
                             </span>
                         </div>
                    </div><!--deliver_main_menu结束-->
                </div>
                <div class="deliver_main_menu_total">
                    <p>合计：<span>{{delivery.deliveryGoods.totalprice}}</span>元</p>
                </div>
            </div>
            <div class="deliver_main_status" ng-show="userid!=3">
                  <ul id="progressBar{{delivery.dlvid}}" class="deliver_main_menu_Progressbar">
                      <li>
                          <span class="deliver_circle"></span>
                      </li>
                      <!--<div class="deliver_circle1 red"></div>-->
                      <li>
                          <span class="deliver_circle"></span>
                          <span class="deliver_circle_line"></span>
                      </li>
                      <li>
                          <span class="deliver_circle"></span>
                          <span class="deliver_circle_line"></span>
                      </li>
                      <li>
                          <span class="deliver_circle"></span>
                          <span class="deliver_circle_line"></span>
                      </li>
                      <li>
                          <span class="deliver_circle"></span>
                          <span class="deliver_circle_line"></span>
                      </li>
                  </ul>
                  <div class="deliver_main_menu_Progress">
                      <ul ng-repeat="status in delivery.deliveryStatus">
                          <li>{{status.statusDesc}}</li>
                          <li>{{status.updatetime | date:'MM-dd HH:mm:ss'}}</li>
                      </ul>
                  </div>
            </div>
            <div class="deliver_main_other" ng-show="userid!=3">
                <div class="other_mess">其他信息</div>
                <ul>
                    <li>
                        <span class="other_mess_left">收货信息：</span>
                        <span class="other_mess_right">
                            <div>{{delivery.receiverName}}&nbsp{{delivery.receiverPhone}}</div>
                            <div>{{delivery.receiverAddress}}</div>
                        </span>
                    </li>
                    <li><span class="other_mess_left">支付方式：</span>
                        <span class="other_mess_right">在线支付</span>
                    </li>
                    <li><span class="other_mess_left">订单备注：</span>
                        <span class="other_mess_right">{{delivery.receiverRemark}}</span>
                    </li>
                    <!--<li><span class="other_mess_left">发票信息：</span>
                        <span class="other_mess_right">无</span>
                    </li>-->
                </ul>
            </div>
            <div class="deliver_main_button"  ng-show="userid == 1&& delivery.deliveryStatus.length==1">
                <button class="submit-ask-content" ng-click="takeOrder(delivery)">确认接单</button>
            </div>
            <div class="confirm-bton"  ng-show="userid == 3&& delivery.deliveryStatus.length==2">
                <button class="confirm-bton1" ng-click="courierCancelOrder(delivery,deliverys)" ng-show="delivery.courierid!=0">取消派送</button>
                <button class="confirm-bton2" ng-click="courierTakeOrder(delivery)">确认派送</button>
            </div>
            <div class="deliver_main_button"  ng-show="userid == 3&& delivery.deliveryStatus.length==3">
                <button class="submit-ask-content" ng-click="sureService(delivery)">确认送达</button>
            </div>
            <div class="confirm-bton" ng-show="userid == 1&& delivery.deliveryStatus.length==2 && delivery.courierid == 0">
                <button class="confirm-bton1" ng-click="checkCourier(delivery)">选择配送员</button>
                <button class="confirm-bton2">我要发布</button>
            </div>
        </div>
    </div>   <!--deliver_main结束-->
    <!--无单子样式-->
    <div ng-show="userid == 3&&deliverys.length==0">
        <div class="error">
            <div class="error_img">
                <img src="images/noorder.png">
            </div>
            <p class="sub_txt">您还没有相关订单</p>
            <p class="sub_txt_1">可以去看看是否有可接单子</p>
            <a ng-href=""><p class="sub_txt_home">去抢单</p></a>
        </div>
    </div>
    <div ng-show="userid == 1&&deliverys.length==0">
        <div class="error">
            <div class="error_img">
                <img src="images/noorder.png">
            </div>
            <p class="sub_txt">您还没有相关订单</p>
        </div>
    </div>
    <div ng-show="userid == 2&&deliverys.length==0">
        <div class="error">
            <div class="error_img">
                <img src="images/noorder.png">
            </div>
            <p class="sub_txt">您还没有相关订单</p>
            <p class="sub_txt_1">可以去看看还有那些想买的</p>
            <a ng-href=""><p class="sub_txt_home">去逛逛</p></a>
        </div>
    </div>
</div>